import request from '@/utils/request'

// 查询设备和网关关联列表
export function listDevice_gateway(query) {
  return request({
    url: '/property/device_gateway/list',
    method: 'get',
    params: query
  })
}

// 查询设备和网关关联详细
export function getDevice_gateway(id) {
  return request({
    url: '/property/device_gateway/' + id,
    method: 'get'
  })
}

// 新增设备和网关关联
export function addDevice_gateway(data) {
  return request({
    url: '/property/device_gateway',
    method: 'post',
    data: data
  })
}

// 修改设备和网关关联
export function updateDevice_gateway(data) {
  return request({
    url: '/property/device_gateway',
    method: 'put',
    data: data
  })
}

// 删除设备和网关关联
export function delDevice_gateway(id) {
  return request({
    url: '/property/device_gateway/' + id,
    method: 'delete'
  })
}
